﻿using AutoMapper;
using S.Services.SheepMale.Api.Application.Command.MarketCommand;
using S.Services.SheepMale.Api.Application.Command.PurchaseCommand;
using S.Services.SheepMale.Api.Application.Command.SheepMaleCommand;
using S.Services.SheepMale.Domain.PurchaseSales;
using static System.Net.Mime.MediaTypeNames;


namespace S.Services.SheepMale.Api.Extensions
{
    public class SheepProfile : Profile
    {
        public SheepProfile()
        {
            //种公添加
            CreateMap<SheepFatherAddCommand, SheepMaleInfo>().ReverseMap();
            //种公修改
            CreateMap<SheepFatherUpdCommand, SheepMaleInfo>().ReverseMap();
            //种母添加
            CreateMap<SheepMomAddCommand, SheepMaleInfo>().ReverseMap();
            //种母修改
            CreateMap<SheepMomUpdCommand, SheepMaleInfo>().ReverseMap();
            //采购添加
            CreateMap<PurchaseAddCommand, EntityPurchase>().ReverseMap();
            //采购修改
            CreateMap<PurchaseEditCommand, EntityPurchase>().ReverseMap();
            //销售添加
            CreateMap<MarketAddCommand, EntityMarket>().ReverseMap();
			//销售添加
			CreateMap<MarketAddCommand, ClientMarket>().ReverseMap();
			//销售修改
			CreateMap<MarketUpdCommand, EntityMarket>().ReverseMap();
        }
    }
}
